import { resolve } from 'pathe'

/**
 * 配置
 */
export default defineNuxtConfig({
    app: {
        head: {
            titleTemplate: '%s-悠悠博客',
            title: '一个神奇的博客',
            charset: 'utf-8',
            htmlAttrs: {
                lang: 'zh-cn'
            },
            meta: [
                { name: 'viewport', content: 'width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=0,user-scalable=no' },
                { name: 'description', content: '一个神奇的博客,悠悠吧,悠悠博客,悠悠个人博客,分享生活,分享代码,记录一个文艺女青年的IT之路' },
                { name: 'keywords', content: '一个神奇的博客,悠悠吧,悠悠博客,博客模板,个人博客,开源博客,vue3,nuxt3' }
            ]
        }
    },
    //自定义目录
    alias: {
        '@img': resolve(__dirname, './static/img'),
        '@less': resolve(__dirname, './static/less')
    },
    //目录引入
    imports: {
        dirs: ['apis','apis/vo']
    },
    //引入svg
    modules: ['~/components/app/svg/app'],
    //打包配置
    nitro: {
        //缩小捆绑包
        minify: true,
        //关闭源映射生成
        sourceMap: false
    },
    //取消取消行内样式
    features: {
        inlineStyles: false
    }
})